home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
propage
/
genies
/
frenchgenies
/
rexx
/
pagelandscape.pprx
< prev
next >
Wrap
Text File
|
1993-08-03
|
2KB
|
69 lines
/*
@BPageLandscape @P @I Ecrit et © par Don Cox en juillet 1992
@IN'est pas du Domaine Publique. Tous Droits Réservés.
Traduit par Fabien Larini le 30/07/93.
Ce Génie transforme la page courante du format portrait au format
landscape (à l'italienne) et vice versa. Il règle les spécifications
PostScript en conséquence.
*/
/*LandscapePage*/
/* This Genie changes a portrait format page to landscape, and vice versa. It sets up the Postscript output specs correctly.
Written by Don Cox July '92 Not Public Domain. All rights reserved. */
signal on error
signal on syntax
address command
call SafeEndEdit.rexx()
cpage = ppm_CurrentPage()
psize = ppm_GetPageSize(cpage)
Xsize = word(psize,1)
Ysize = word(psize,2)
if Xsize = Ysize then exit_msg("La Page est Carrée")
if Xsize<Ysize then
do
shape = "Portrait"
newshape = "Landscape"
neworient = 2
end
else do
shape = "Landscape"
newshape = "Portrait"
neworient = 1
end
choiceint = ppm_Inform(2,"La Page est "shape". Convertit en "newshape"?","Oui","Non")
if choiceint ~=0 then exit_msg("Pas de Changement")
call ppm_SetPageSize(cpage,Ysize,Xsize)
orient = ppm_GetPSOutputOrient(cpage)
call ppm_SetPSOutputOrient(cpage,neworient)
call exit_msg()
end
error:
syntax:
do
exit_msg("Arrêt du Génie dû à l'erreur: "errortext(rc))
end
exit_msg:
do
parse arg message
if message ~= "" then
call ppm_Inform(1,message,)
call ppm_ClearStatus()
call ppm_AutoUpdate(1)
exit
end